zynqmp: pm: Add ACPU_FULL and ACPU_HALF clocks in the invalid list
authorJolly Shah <[email protected]>
Wed, 2 Jan 2019 21:48:19 +0000 (13:48 -0800)
committerJolly Shah <[email protected]>
Fri, 4 Jan 2019 20:00:07 +0000 (12:00 -0800)
These clocks are marked as invalid in order to prevent Linux from
registering them.

Note that despite clocks being marked as invalid a security issue
still remains in place as there is nothing that prevents the
non-secure world from gating these clocks and that way halt
the whole APU subsystem.

Signed-off-by: Mirela Simonovic <[email protected]>
Acked-by: Will Wong <[email protected]>
Signed-off-by: Jolly Shah <[email protected]>
plat/xilinx/zynqmp/pm_service/pm_api_clock.c

index d91f4e467eb07fc94f693471b7872e6bb1174a2f..8901ea691db917acf7de75090a8f6696ef423b51 100644 (file)
@@ -2253,7 +2253,10 @@ static struct pm_ext_clock ext_clocks[] = {
 };
 
 /* Array of clock which are invalid for this variant */
-static uint32_t pm_clk_invalid_list[] = {CLK_USB0, CLK_USB1, CLK_CSU_SPB};
+static uint32_t pm_clk_invalid_list[] = {CLK_USB0, CLK_USB1, CLK_CSU_SPB,
+       CLK_ACPU_FULL,
+       CLK_ACPU_HALF,
+};
 
 /**
  * pm_clock_valid - Check if clock is valid or not